package init

import (
	"hxz_api/basic/globar"
	send "hxz_rpc/kitex_gen/hxz_rpc/send/sendservice"
	user "hxz_rpc/kitex_gen/hxz_rpc/user/userservice"
	"log"

	"github.com/cloudwego/kitex/client"
)

func SendRpc() {
	c, err := send.NewClient("example.shop.item", client.WithHostPorts("0.0.0.0:9990"))
	if err != nil {
		log.Fatal(err)
	}
	globar.Send = c
}
func UserRpc() {
	c, err := user.NewClient("example.shop.item", client.WithHostPorts("0.0.0.0:9991"))
	if err != nil {
		log.Fatal(err)
	}
	globar.User = c
}
